<?php

/**
 * This is the model class for table "worker_account".
 *
 * The followings are the available columns in table 'worker_account':
 * @property string $worker_id 帐户id
 * @property string $worker_name Worker Name
 * @property string $worker_password Worker Password
 * @property integer $worker_status Worker Status
 * @property string $ojbect_type 帐户类型
 */
class ProviderAccount extends WorkerAccount
{
	public $cate_id;
	/**
	 * Returns the static model of the specified AR class.
	 * @return WorkerAccount the static model class
	 */
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	
	public function getCategoryAndName() {
		$cateName = CHtml::value($this, 'info.category.category_name');
		return "[{$cateName}]{$this->worker_name}";
	}
}